package com.atguigu.userprofile.service;

import com.atguigu.userprofile.bean.UserGroup;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

public interface UserGroupService  extends IService<UserGroup> {

    //保存分群信息到Mysql
    void saveUserGroupToMysql(UserGroup userGroup);


    //计算前台传入的分群信息，生产计算的sql，将结果写入ck中保存
    void saveUserGroupToCK(UserGroup userGroup);

    UserGroup saveUserGroupToRedis(UserGroup userGroup);

    Long evaluateUserGroup(UserGroup userGroup);

    UserGroup updateUserGroupInCk(String busiDate, String id);
}
